FHIR © HL7.org  |  Server Home  |  FHIR Server FHIR Server 3.4.11  |  FHIR Version n/a  User: [n/a]

Resource StructureDefinition/FHIR Server from package de.gematik.erp-servicerequest#1.2.0-rc2 (109 ms)

Package de.gematik.erp-servicerequest
Type StructureDefinition
Id Id
FHIR Version R4
Source https://simplifier.net/resolve?scope=de.gematik.erp-servicerequest@1.2.0-rc2&canonical=https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-message-container
Url https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-message-container
Version 1.2
Status draft
Date 2025-01-01
Name ERPServiceRequestMessageContainer
Title ERP Service Request Message Container
Experimental False
Description Bundle, which contains all resources of a message
Type Bundle
Kind resource

Resources that use this resource

StructureDefinition
https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-request-header ERP Service Request Request Header

Resources that this resource uses

StructureDefinition
https://gematik.de/fhir/atf/StructureDefinition/bundle-app-transport-framework MessageBundle für den Nachrichtentransport
https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-request-header ERP Service Request Request Header


Source

{
  "resourceType" : "StructureDefinition",
  "id" : "erp-service-request-message-container",
  "url" : "https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-message-container",
  "version" : "1.2",
  "name" : "ERPServiceRequestMessageContainer",
  "title" : "ERP Service Request Message Container",
  "status" : "draft",
  "experimental" : false,
  "date" : "2025-01-01",
  "publisher" : "gematik GmbH",
  "description" : "Bundle, which contains all resources of a message",
  "fhirVersion" : "4.0.1",
  "kind" : "resource",
  "abstract" : false,
  "type" : "Bundle",
  "baseDefinition" : "https://gematik.de/fhir/atf/StructureDefinition/bundle-app-transport-framework",
  "derivation" : "constraint",
  "differential" : {
    "element" : [
      {
        "id" : "Bundle",
        "path" : "Bundle",
        "constraint" : [
          {
            "key" : "service-request-message-container-1",
            "severity" : "error",
            "human" : "If the Message is a copy then the focus of the MessageHeader must be a Bundle, otherwise a ServiceRequest.",
            "expression" : "(Bundle.entry[0].resource.event.code = 'eRezept_Rezeptanforderung;NachrichtKopie' implies (Bundle.entry[0].resource.focus.all($this.resolve() is Bundle))) and (Bundle.entry[0].resource.event.code != 'eRezept_Rezeptanforderung;NachrichtKopie' implies Bundle.entry[0].resource.focus.all($this.resolve() is ServiceRequest))",
            "source" : "https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-message-container"
          },
          {
            "key" : "service-request-message-container-2",
            "severity" : "error",
            "human" : "If the the Prescription-ServiceRequest contains the health-care service as a reference, then the e-mail contact must be present.",
            "expression" : "Bundle.entry.resource.children().reference.where($this.startsWith('ServiceRequest')).all(($this.resolve().supportingInfo.where($this.type = 'Organization').exists() and $this.resolve().code.coding.code = 'prescription-request')implies $this.resolve().supportingInfo.where($this.type = 'Organization').reference.resolve().contact.telecom.where(system = 'email').exists())",
            "source" : "https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-message-container"
          },
          {
            "key" : "service-request-message-container-3",
            "severity" : "error",
            "human" : "If the the Prescription-ServiceRequest contains the health-care service as a reference, then the organization must have the respective type.",
            "expression" : "Bundle.entry.resource.children().reference.where($this.startsWith('ServiceRequest')).all(($this.resolve().code.coding.code = 'prescription-request' and $this.resolve().supportingInfo.where($this.type = 'Organization').exists()) implies $this.resolve().supportingInfo.where($this.type = 'Organization').reference.resolve().type.coding.code = '1.2.276.0.76.4.245')",
            "source" : "https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-message-container"
          },
          {
            "key" : "service-request-message-container-4",
            "severity" : "error",
            "human" : "If the the Prescription-ServiceRequest is active, not Zyto and the requester is a pharmacy, then the Healthcare Service to receive a copy must be stated.",
            "expression" : "(Bundle.entry[0].resource.event.code != 'eRezept_ParenteraleZubereitung;Rezeptanfrage') implies Bundle.entry.resource.children().reference.where($this.startsWith('ServiceRequest')).all(($this.resolve().code.coding.code = 'prescription-request' and $this.resolve().status = 'active' and $this.resolve().requester.resolve().type.coding.code = '1.2.276.0.76.4.54') implies $this.resolve().supportingInfo.where($this.type = 'Organization').exists())",
            "source" : "https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-message-container"
          },
          {
            "key" : "service-request-message-container-5",
            "severity" : "error",
            "human" : "If the the Dispense-ServiceRequest is active then the requester must be a Health Care Service.",
            "expression" : "Bundle.entry.resource.children().reference.where($this.startsWith('ServiceRequest')).all(($this.resolve().code.coding.code = 'dispense-request' and $this.resolve().status = 'active') implies $this.resolve().requester.resolve().type.coding.code = '1.2.276.0.76.4.245')",
            "source" : "https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-message-container"
          }
        ]
      },
      {
        "id" : "Bundle.entry:MessageHeader",
        "path" : "Bundle.entry",
        "sliceName" : "MessageHeader"
      },
      {
        "id" : "Bundle.entry:MessageHeader.resource",
        "path" : "Bundle.entry.resource",
        "type" : [
          {
            "code" : "MessageHeader",
            "profile" : [
              "https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-request-header"
            ]
          }
        ]
      }
    ]
  },
  "text" : {
  }
}

XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.